import Ember from 'ember';
import BaseBusiness from '../base-business';
import Pagination from '../pagination';

export default BaseBusiness.extend(Pagination, {
    //header_title:'长者详情',
    model() {
        return {};
    },
    setupController: function(controller, model) {
        this._super(controller, model);
        this.store.query('bed', {}).then(function(bedList) {
            controller.set('bedList', bedList);
            console.log("bedList is", controller.get("bedList"));
            controller.set("bedListFirst", bedList.get('firstObject'));

        });
        controller.set('customerInfo', this.store.createRecord('customer', {}));
        console.log("customerInfo is", controller.get("customerInfo"));
    },
});
